package com.neuedu.elmserver.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商家表
 * </p>
 *
 * @author wyh
 * @since 2024-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Business implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商家编号;商家编号
     */
    @TableId(value = "business_id", type = IdType.AUTO)
    private Integer businessId;

    /**
     * 商家名称;商家名称
     */
    private String businessName;

    /**
     * 商家地址;商家地址
     */
    private String businessAddress;

    /**
     * 商家图片;商家图片
     */
    private String businessImg;

    /**
     * 商家介绍;商家介绍
     */
    private String businessExplain;

    /**
     * 商家所属分类;1-美食 2-早餐 3-跑腿代购 4-汉堡披萨 5-甜品饮品 6-素食简餐 7-地方小吃  8-米粉面馆  9-包子粥铺 10-炸鸡炸串
     */
    @TableField("typeId")
    private Integer typeid;

    /**
     * 起送费;起送费
     */
    private BigDecimal starPrice;

    /**
     * 配送费;配送费
     */
    private BigDecimal deliveryPrice;

    /**
     * 备注;备注
     */
    private int sales;

    /**
     * 距离;距离
     */
    private double distance;

    /**
     * 配送时间;配送时间
     */
    private int deliveryTime;

    /**
     * 评分;评分
     */
    private double remarks;

    /**
     * 蜂鸟专送;蜂鸟专送
     */
    private int delivery;

    /**
     * 活动数量
     */
    private Integer activity;

    private Integer rankId;

    @TableField(exist = false) //忽略mybatisPlus的字段映射
    private List<Activity> activities;
}
